<div class="form blue">

{WidgetActiveForm id="pet-form" enableAjaxValidation=0 model=$model}

	<p class="note"><span class="required">*</span> - поля обязательные для заполнения.</p>

	{afErrorSummary}

	<div class="row">
                {afLabelEx property='nickname'}
                {array assign="attr" size=25 maxlength=25 class="small"}
                {afTextField property='nickname' attr=$attr}
                {afError property='nickname'}
	</div>

	<div class="row">
                {afLabelEx property='type'}
                {array assign="dataSelect" 1='кошка' 2='собака'}
                {*afDropDownList property='type' data=$dataSelect*}
                {array assign="attr" maxlength=100 class="small"}
                {afTextField property='type' attr=$attr}
                {afError property='type'}
	</div>

	<div class="row">
                {afLabelEx property='race'}
                {array assign="attr" maxlength=100 class="small"}
                {afTextField property='race' attr=$attr}
                {afError property='race'}
	</div>

	<div class="row">
                {afLabelEx property='about'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='about' attr=$attr}
                {afError property='about'}
	</div>

        <div class="row buttons">
            {if $model->isNewRecord}
                {assign var="text" value="Добавить"}
            {else}
                {assign var="text" value="Сохранить"}
            {/if}
            {array assign="htmlOptions" class="popup-button submit"}
            {chtmlLink text="<span>"|cat:$text|cat:"</span>" url="#" htmlOptions=$htmlOptions}
	</div>

{/WidgetActiveForm}

<div class="clear-floating"></div>

</div><!-- form -->